<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <base href="<%=basePath%>"/>
		<title>生成订单 - 当当网</title>
		<link href="css/login.css" rel="stylesheet" type="text/css" />
		<link href="css/page_bottom.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="js/jquery-1.4.3.js"></script>
		<script type="text/javascript" src="js/receiveAddress.js"></script>
		<style type="text/css">
		.oddAdd{
			background-color: silver;
		}
			
		</style>
	</head>
	<body>
		<div id="header"><iframe src="common/header.jsp" height="250px" width="960px" frameborder="0"></iframe></div>
		<div class="login_step">
			生成订单骤: 1.确认订单 >
			<span class="red_bold"> 2.填写送货地址</span> > 3.订单成功
		</div>
		<div class="fill_message">
			<p>
				选择地址：
				<select id="address" onchange="changeAdd(this.value)">
					<option value="0">
						填写新地址
					</option>
				<s:iterator value="addressList">
					<option value="<s:property value='id'/>">
					<s:property value="fullAddress"/>
					</option>
				</s:iterator>
				</select>
			</p>
			<s:form method="post" action="productAction!writeAddress" id="myform" onsubmit="return checkForm();" namespace="/order">
				<s:hidden id="addressId" name="address.id" value="0"/>
				<table class="tab_login">
					<tr>
						<td valign="top" class="w1">
							收件人姓名：
						</td>
						<td>
							<s:textfield cssClass="text_input" id="receiveName" name="address.receiveName"/>
							<div class="text_left" id="nameValidMsg">
								<span id="fuck_0">
									请填写有效的收件人姓名
								</span>
							</div>
						</td>
					</tr>
					<tr>
						<td valign="top" class="w1">
							收件人详细地址：
						</td>
						<td>
							<s:textfield name="fullAddress" cssClass="text_input"
								id="fullAddress" name="address.fullAddress"/>
							<div class="text_left" id="addressValidMsg">
								<span id="fuck_1">
									请填写有效的收件人的详细地址
								</span>
							</div>
						</td>
					</tr>
					<tr>
						<td valign="top" class="w1">
							邮政编码
						</td>
						<td>
							<s:textfield cssClass="text_input" id="postalCode" name="address.postalCode"/>
							<div class="text_left" id="codeValidMsg">
								<span id="fuck_2">
									请填写有效的收件人的邮政编码
								</span>
							</div>
						</td>
					</tr>
					<tr>
						<td valign="top" class="w1">
							电话
						</td>
						<td>
							<s:textfield cssClass="text_input"
								id="phone" name="address.phone"/>
							<div class="text_left" id="phoneValidMsg">
								<span id="fuck_3">
									请填写有效的收件人的电话如:(010-78675432)/(87123434)
								</span>
							</div>
						</td>
					</tr>
					<tr>
						<td valign="top" class="w1">
							手机
						</td>
						<td>
							<s:textfield cssClass="text_input" 	id="mobile" name="address.mobile"/>
							<div class="text_left" id="mobileValidMsg">
								<span id="fuck_4">
									请填写有效的收件人的手机
								</span>
							</div>
						</td>
					</tr>
				</table>

				<div class="login_in">
					<span><s:property value="info"/></span>
					<input type="reset" id="btnClientRegister" class="button_1" name="submit"
					type="submit" value="取消" />
			
				<input id="btnClientRegister" class="button_1" name="submit"
					type="submit" value="下一步" />
				</div>
			</s:form>
		</div>
		<!--网站版权部分开始-->
<div id="footer">
<iframe src="common/footer.jsp" height="50px" width="900px" frameborder="0"></iframe></div>
	</body>
</html>

